package services.impl;

import java.util.List;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import services.VentaService;
import dao.VentaDAO;
import entities.Venta;
@Stateless
public class VentaServiceBean implements VentaService {

	@EJB
	private VentaDAO ventaDAO;
	
	@Override
	public void delete(Object id) {
		ventaDAO.delete(id);
	}
	
	@Override
	public void persist(Venta entity) {
		ventaDAO.persist(entity);
	}

	@Override
	public Venta merge(Venta entity) {
		return ventaDAO.merge(entity);
	}
	
	@Override
	public List<Venta> findAll() {
		return ventaDAO.findAll();
	}
	
	@Override
	public Venta findByID(Object id) {
		return ventaDAO.findByID(id);
	}

}
